package sng.modules.view.components.city.state
{

	import sng.modules.view.components.city.cursor.CityCursor;
	import sng.modules.view.components.city.cursor.CityCursorManager;
	import sng.modules.view.components.city.logic.City;
	import sng.modules.view.components.city.logic.unit.BaseBuilding;

	public class CityNormalState implements ICityState
	{
		public function CityNormalState(_city:City)
		{
			city=_city;
			
			//更改指针状态 eason 20110714
			CityCursorManager.getInstance().setCursor(CityCursor.NORMAL_CURSOR);
		}
		
		//此状态为city默认状态，或者由取消按钮触化
		public function Execute(parameter:*=null):void
		{
			//build.currentState=new BuildNormalState();
			//build.currentState.Execute(build);
			city.currentBuilding.currentState.execute(city.currentBuilding);
			
		}
		
		public var city:City;
		public function toString():String
		{
			return "CityNormalState";
		}
	}
}